# -*- coding: utf-8 -*- 
# @project : 《Atcoder》
# @Author : created by bensonrachel on 2021/11/20
# @File : 228.A - On and Off.py
s,t,x = map(int,input().split())

if s<t:
    if x>=s and x<t:
        print("Yes")
    else:
        print("No")
else:
    if x>=s or x<t:
        print("Yes")
    else:
        print("No")

